home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
InterCD 2000 September
/
september_2000.iso
/
intercd
/
root
/
^Linux
/
Jooky
/
findhedder.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1999-11-01
|
313 b
|
21 lines
#include "includes.h"
long findhedder(FILE *inp)
{
int a,b;
while ((a=fgetc(inp))!=EOF)
{
fseek(inp,-1,SEEK_CUR);
a=fgetc(inp);
b=fgetc(inp);
fseek(inp,-2,SEEK_CUR);
if ((a==0xFF)&((b==0xFB)|(b==0xFA)))
{
return (ftell(inp));
}
fseek(inp,1,SEEK_CUR);
}
return EOF;
}